package com.example.threaddemo;

import lombok.extern.slf4j.Slf4j;

/**
 * @Description
 * @Date 2021/8/8
 * @Created by Jonathan
 */
@Slf4j
public class MyThreadUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.info("thread:{},name:{},e:{}", t.getId(), t.getName(), e.getMessage());
    }
}
